package com.yhhvip.order.dao;
import com.yhhvip.order.entity.Orders;
import com.yhhvip.order.entity.OrdersDetail;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface OrdersDetailDao extends JpaRepository<OrdersDetail,Integer>,JpaSpecificationExecutor<OrdersDetail> {

   /*@Query(value = " from Orders as orders,OrdersDetail as od where orders.user1Id=?1 or orders.user2Id=?1 or orders.user3Id=?1 and od.ordersId=orders.ordersId")*/
  /* @Query(value = " from OrdersDetail as ordersDetail where ordersDetail.user1Id=?1  ")
   List<Orders> findCommissionOrder(Integer userId);*/


}
